package com.dss.code_generation;

import com.dss.code_generation.config.DssProperties;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.io.IOException;


/**
 * @author dongss5
 */
@SpringBootApplication
@EnableConfigurationProperties({DssProperties.class})
@Slf4j
@EnableScheduling
@MapperScan(basePackages = {"com.dss.**.mapper"})
@ConfigurationPropertiesScan
public class CodeGenerationApplication {

    public static void main(String[] args) throws IOException {
        SpringApplication springApplication = new SpringApplication(CodeGenerationApplication.class);
        springApplication.setAllowCircularReferences(true);
        springApplication.run(args);
    }

}
